<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method='xml' indent='yes' />
<xsl:template match='topalbums'>
   <rdf:RDF  
   		xmlns="http://www.polytech.unice.fr/semanticfm#" 
		xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
		xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
		
		<Artist>
			<xsl:attribute name='rdf:about'>
				<xsl:value-of select="@artist"/>
			</xsl:attribute>
			<xsl:for-each select='album'>
				<album>
					<Album>
						<albumName><xsl:value-of select="name"/></albumName>
						<url><xsl:value-of select="url"/></url>
						<pic><xsl:value-of select="image/medium"/></pic>
						<reach><xsl:value-of select="reach"/></reach>
					</Album>
				</album>
			</xsl:for-each>
		</Artist>
	</rdf:RDF>

</xsl:template>
</xsl:stylesheet>